package com.hengxinguotong.hxgtwygsp.net;

import com.google.gson.Gson;
import com.hengxinguotong.hxgtwygsp.model.WeatherBean;
import com.hengxinguotong.hxgtwygsp.utils.PreferencesUtil;

import io.reactivex.Observable;

/**
 * TODO
 *
 * @author hjz
 * @version V1.0.0
 * @since 2018/12/22 10:48
 */

public class HttpRequest extends BaseRequest
{
    private HttpService httpService;

    public HttpRequest(PreferencesUtil preferencesUtil, Gson gson)
    {
        super(preferencesUtil, gson);
        httpService = createRetrofit(testMode).create(HttpService.class);
    }

    public Observable<WeatherBean> getWeather(){
        return httpService.getWeather();
    }
}
